@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>合同编号-xxx</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="contractName" name="合同名称"/>
                            </div>
                            <div class="col-sm-2">
                                <#SelectCon id="payType" name="支付方式">
                                <option value="1">银联</option>
                                <option value="2">现金</option>
                            </#SelectCon>
                        </div>
                        <div class="col-sm-2">
                            <#SelectCon id="currency" name="币种">
                            <option value="1">人民币(RMB)</option>
                            <option value="2">美元($)</option>
                        </#SelectCon>
                        </div>
                        <div class="col-sm-2">
                            <#NameCon id="contractAmount" name="合同金额"/>
                        </div>
                    </div>
                <div class="row">
                    <div class="col-sm-3">
                        <#NameCon id="firstParty" name="合同甲方"/>
                    </div>
                    <div class="col-sm-3">
                        <#NameCon id="secondParty" name="合同乙方"/>
                    </div>
                    <div class="col-sm-2">
                        <#TimeCon id="signDate" name="签订日期" isTime="true" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-2">
                        <#NameCon id="remarks" name="备注信息" />
                    </div>
                    <div class="col-sm-2">
                        <#SelectCon id="state" name="是否支付"/>
                    </div>
                    <div class="col-sm-2">
                        <#button name="保存" icon="fa-plus" clickFun="Purchase.save()"/>
                    </div>
                </div>
                <div class="hidden-xs" id="ContractInfoTableToolbar" role="group">
                    @if(shiro.hasPermission("/contractInfo/add")){
                    <#button name="添加商品" icon="fa-plus" clickFun="ContractInfo.openAddContractInfo()"/>
                    @}
                    @if(shiro.hasPermission("/contractInfo/delete")){
                    <#button name="删除商品" icon="fa-remove" clickFun="ContractInfo.delete()" space="true"/>
                    @}
                </div>
                <#table id="ContractInfoTable"/>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<script src="${ctxPath}/static/modular/contractmanager/contractInfo/contractInfo.js"></script>
<script>
    laydate.render({
        elem: '#signDate',
        type: 'datetime'
    });
</script>
@}
